different ways of creating javascript objects